package com.example1.strategy;

/**
 * @author 周楠
 * @Date 2023/03/13/下午 10:28
 */
public abstract class DuckStrategy  {

    //抽象鸭子 定义其发声特征、飞行特征、外观特征


    public void setFly(FlyStrategy flyStrategy) {
        flyStrategy.fly();
    }

    public void setSound(SoundStrategy soundStrategy){
        soundStrategy.soung();

    }

    //身份特征
    protected abstract void appreance();




}
